package com.micolor.logr.runtime.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author EvanGe
 * @Type LogMessageItem.java
 * @Desc
 * @date 2024/7/8 15:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LogMessageItem implements Serializable {
    private String name;
    private String desc;
    private Object originalValue;
    private Object transValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LogMessageItem item = (LogMessageItem) o;
        return Objects.equals(transValue, item.transValue);
    }

}
